﻿using System;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;
using WeatherHistory.Data.Entities;

namespace WeatherHistory.Data.Repositories.Interfaces;

public interface IRegionTypeRepository : IRepositoryBase<RegionType>
{
    Task<RegionType> FirstOrDefaultWithRegionsAsync(Expression<Func<RegionType, bool>> match, CancellationToken cancellationToken);
}